package word418.compclass;

public class teacher extends school {
  public teacher(String name, double weigh, double stature) {
    this.name = name;
    this.weigh = weigh;
    this.stature = stature;
  }

  private String name;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public double getWeigh() {
    return weigh;
  }

  public void setWeigh(double weigh) {
    this.weigh = weigh;
  }

  public double getStature() {
    return stature;
  }

  public void setStature(double stature) {
    this.stature = stature;
  }

  private double weigh;
  private double stature;

  public teacher() {
  }
  public double getBmi() {
    return weigh/(stature*stature);
  }


}
